
## ========================================================= ##
## Only Modify Here, if you want to add a driver directory   ##
## !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ##
## ========================================================= ##
set(THIS_LIBNAME kservice)

include_directories(${GLB_INC_DIR})
include_directories(${GLB_INC_DIR}/kservice)
include_directories(${REFERENCE}/fatfs/source)

list(APPEND LST_ASTRAL test)
list(APPEND LST_ASTRAL console)
list(APPEND LST_ASTRAL ramfs)
list(APPEND LST_ASTRAL display)
list(APPEND LST_ASTRAL executor)



## usually, do not need to modify things below this line
## ========================================================= ##
project(${THIS_LIBNAME})

foreach(SUBMOD ${LST_ASTRAL})
    add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/${SUBMOD})
endforeach()


## ===================================== ##
## Generally, it is NOT been supposed    ##
## to modify the code below this line.   ##
## ===================================== ##

message(STATUS "\n-- [^.^]********${THIS_LIBNAME}********[^.^]")
message(STATUS "The sources in [ " ${CMAKE_CURRENT_LIST_DIR} " ] are:")
foreach(SRC ${SRCS})
    message(STATUS "[src] " ${SRC})
endforeach()

rearchive(${THIS_LIBNAME} OBJS ${LST_ASTRAL})